#coding:utf8
#import web
import sys
import StringIO
import json
import fetchdata
import cPickle
import train_svc
import numpy as np
#import show
import tranpoint

#=============
#insert above
#=============
    '''
    def DrawIndex(ax,datalist):
        poslist=[one["pos"] for one in datalist]
        disres =[getv(one,"wsvc") for one in datalist]
        ax.plot(poslist, disres , color="r")
        ax.hlines(0, poslist[0], poslist[-1], colors='b')
        ax.hlines([10, 5, 0, -5, -10], poslist[0], poslist[-1], colors=['r', 'r', 'b', 'g', 'g'], linestyles='dashdot')

    def DrawMarketValue(ax,datalist):
        poslist=[one["pos"] for one in datalist]
        disres =[getv(one,"mv") for one in datalist]
        ax.plot(poslist, disres , color="r")

    def exDrawLine(axs,datalist):
        DrawIndex(axs[1],datalist)
        DrawMarketValue(axs[2],datalist)

    show.Show(ch.data,exDrawLine,500)
    '''
